<?php 
require('returncode.php');
header("Content-type: text/html; charset=utf-8");
error_reporting(E_ALL^E_NOTICE); //关闭notice级别的提示
$status_code=http_response_code();
// $codearr = array("status" => $status_code);
$res_arr=array(
	'unconn'=>array('status_code'=>$status_code,'status'=>'1','msg'=>'连接失败'),
	'conn'=>array('status_code'=>$status_code,'status'=>'1','msg'=>'连接成功')
);
$con=new mysqli("localhost", "root", "sewen744926", "mackdown");
if(!$con){
	exit(json_encode($res_arr['unconn'],JSON_UNESCAPED_UNICODE));
}else{
	exit(json_encode($res_arr['conn'],JSON_UNESCAPED_UNICODE));
}





 

